<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>销售订单头部</title>
    <%= stylesheet_link_tag "/stylesheets/print.css" %>
  </head>
  <body>
    <table width="750" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="4">
          <div align="center" style="font-size:18px">
            <%=SysParam.find_by_company_id(session[:company_id]).company_name%>
          </div>
        </td>
      </tr>
      <tr>
        <td height="30" colspan="4">
          <div align="center" style="font-size:15px">
            销售凭证
          </div>
        </td>
      </tr>
      <tr>
        <td width="74"><div align="right">
            开单日期：
          </div></td>
        <td width="280"><%=@saleOrder.created_at.strftime("%Y-%m-%d") %></td>
        <td width="74"><div align="right">
            单据编号：
          </div></td>
        <td width="185"><%=@saleOrder.order_number %></td>
      </tr>
      <tr>
        <td><div align="right">
            销售部门：
          </div></td>
        <td><%=@saleOrder.sell_department.name %></td>
        <td><div align="right">
            业务员：
          </div></td>
        <td><%=@saleOrder.sales.name %></td>
      </tr>
      <tr>
        <td><div align="right">
            客户名称：
          </div></td>
        <td><%=@saleOrder.customer.name %></td>
        <td><div align="right">
            销售策略：
          </div></td>
        <td><%=@saleOrder.sales_strategy.name %></td>
      </tr>
      <tr>
        <td><div align="right">
            说明：
          </div></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </body>
</html>